ProviderPortlet = Class.extend({
	init: function()	{
		this.name = "ProviderPortlet";
	},
	
	run: function()	{
		//store the current object
		var obj = this;
		this.onAjax('provider', 'load-menu', {}, 'GET', {
			'onSuccess': function(ret)	{
				obj.model = {};
				obj.model.providers = ret;
				obj.getPortletPlaceholder().paintCanvas(obj.render());
				$("#accordion").accordion();
			}
		});
	}
}).implement(PortletInterface).implement(RenderInterface).implement(AjaxInterface);